#include "pathconst.h"

#include <QDir>

void mkMediaPath()
{
	QDir mediaDir;
	mediaDir.mkdir( MediaPath(""));
}

void mkPlayListPath()
{
	QDir playlistDir;
	playlistDir.mkdir(g_PlayListDirName);
}

void mkVolumeListPath()
{
	QDir volumeListDir;
	volumeListDir.mkdir(g_VolumeListDirName);
}

QString MediaPath(const QString& fileName)
{
	return "Media\\"+fileName;
}

QString PlayListPath(int windowNo)
{
	return g_PlayListDirName + QString("\\") + QString::number(windowNo)+".xml";
}

QString VolumeListPath(int windowNo)
{
	return g_VolumeListDirName + QString("\\") + QString::number(windowNo) + ".xml";
}

const char* const g_InformationFileName = "information.xml";
const char* const g_PlayListFileName = "playlist\\1.xml";
const char* const g_VolumeListFileName = "volumelist\\1.xml";
const char* const g_xmlFileName = "comconfigure.xml";
const char* const g_SplitConfigFileName = "splitconfig.xml";
const char* const g_PlayListDirName = "playlist";
const char* const g_VolumeListDirName = "volumelist";
